
<%@page import="qldc.pm.qtht.dmdc.utils.DiaChiUtils"%>
<%@page import="qldc.pm.csdl.cd90.service.TrinhDoHocVanLocalServiceUtil"%>
<%@page import="qldc.pm.csdl.cd90.model.TrinhDoHocVan"%>
<%@page import="qldc.pm.csdl.cd90.model.TrinhDoChuyenMon"%>
<%@page import="qldc.pm.csdl.cd90.service.CongDanDTOLocalServiceUtil"%>
<%@page import="qldc.pm.csdl.cd90.model.dto.CongDanDTO"%>
<%@ include file="../../init.jsp"%>

<%
	String soDinhDanhCaNhan = ParamUtil.getString(request, "soDinhDanhCaNhan");
	System.out.println("hoc van va nghe nghiep : soDinhDanhCaNhan: >>>"+soDinhDanhCaNhan);
	CongDanDTO congDanDTO = null;
	String _trinhDoHoVan  = "";
	String _truongTotNghiep = "";
	String _trinhDoChuyenMon ="";
	String _noiTotNghiep = "";
	String _ngheNghiep ="";
	String _noiLamViec ="";
	if(Validator.isNotNull(soDinhDanhCaNhan)){
		congDanDTO = CongDanDTOLocalServiceUtil.findBySoDinhDanhCaNhan(soDinhDanhCaNhan);
		if(Validator.isNotNull(congDanDTO)){
			TrinhDoHocVan trinhDoHocVan = TrinhDoHocVanLocalServiceUtil.findBySoDinhDanhCaNhan(soDinhDanhCaNhan);
			if(Validator.isNotNull(trinhDoHocVan)){
				 qldc.pm.qtht.dmdc.model.TrinhDoHocVan trinhDoHocVanDMDC = qldc.pm.qtht.dmdc.service.TrinhDoHocVanLocalServiceUtil.fetchTrinhDoHocVan(trinhDoHocVan.getDmdcTrinhDoHocVanId());
				if(Validator.isNotNull(trinhDoHocVanDMDC)){
					_trinhDoHoVan = trinhDoHocVanDMDC.getTenTrinhDoHocVan();
				}
				_truongTotNghiep = trinhDoHocVan.getTruongTotNghiep();
				_noiTotNghiep = trinhDoHocVan.getDiaChi();
			}
			
			_trinhDoChuyenMon = congDanDTO.getTrinhDoChuyenMon();
			_ngheNghiep = congDanDTO.getNgheNghiep();
			_noiLamViec = DiaChiUtils.createBlockDiaChi(congDanDTO.getNoiLamViecTinhId(), congDanDTO.getNoiLamViecQuanhHuyenId(), congDanDTO.getNoiLamViecPhuongXaId(), congDanDTO.getNoiLamViecDiaChi());

		}
	}
%>

<div id="<portlet:namespace/>hoc-van-va-nghe-nghiep-content">
	<table class="gridnormal">
		<tr>
			<td>
				<liferay-ui:message key="trinh-do-hoc-van" />
			</td>
			<td>
				<%=_trinhDoHoVan %>
			</td>
		</tr>

		<tr>
			<td>
				<liferay-ui:message key="truong-tot-nghiep" />
			</td>
			<td>
				<%=_truongTotNghiep %>
			</td>
		</tr>
		
		<tr>
			<td>
				<liferay-ui:message key="trinh-do-chuyen-mon-kt" />
			</td>
			<td>
				<%=_trinhDoChuyenMon %>
			</td>
		</tr>

		<tr>
			<td>
				<liferay-ui:message key="noi-tot-nghiep" />
			</td>
			<td>
				<%=_noiTotNghiep %>
			</td>
		</tr>

		<tr>
			<td>
				<liferay-ui:message key="nghe-nghiep" />
			</td>
			<td>
				<%=_ngheNghiep %>
			</td>

		</tr>

		<tr>
			<td>
				<liferay-ui:message key="noi-lam-viec" />
			</td>
			<td>
				<%=_noiLamViec %>
			</td>
		</tr>
	</table>
</div>

<script type="text/javascript">
</script>